﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="P23INV.aspx.cs" Inherits="ConsolidationTool.WebParts.Layouts.CReport.Brochure.P23INV" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register TagName="EntitySelector" TagPrefix="RE" Src="~/_controltemplates/ConsolidationTool.WebParts/CommonEntitySelector.ascx" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
  <div class="fs-webpart-top">
        <RE:EntitySelector ID="commonEntitySelector" runat="server" />
    </div>
    
    <br />
    <asp:Button ID="GenerateReport" runat="server" Text="Generate Report" OnClick="GenerateReport_Click" />
    <asp:Button ID="ExportReport" runat="server" Text="Export Report" OnClick="ExportReport_Click" />
    <br /><br />
    <table class="commontable">
        <tr>
            <td align="center" colspan="10"><span class="fs-display-title" style="font-weight: 700">D - INVENTORIES</span></td>
        </tr>

        <tr>
            <td></td>
            <td colspan="9"></td>
        </tr>
        <tr>
            <td align="center"><asp:Label ID="LabelTitile00" runat="server" Text=""></asp:Label></td>
            <td colspan="2" align="center">Month End Value (<asp:Label ID="LabelTitile01" runat="server" Text=""></asp:Label>)</td>
            <td></td>
            <td class="yellow" align="center">Budget<br><asp:Label ID="Label01_Date1" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="green" align="center">Average<br>value<br>moving 12<br>months</td>
            <td></td>
            <td class="deepgreen" align="center">Number of<br>days in<br>stock</td>
            <td class="deepgreen" align="center">Rotation<br>rate</td>
        </tr>
        <tr>
            <td align="center"></td>
            <td class="green" align="center">N-1</td>
            <td class="deepgreen" align="center">Actual</td>
            <td></td>
            <td class="yellow" align="center"></td>
            <td></td>
            <td class="green" align="center"></td>
            <td></td>
            <td class="deepgreen" align="center"></td>
            <td class="deepgreen" align="center"></td>
        </tr>
        <tr>
            <td>Raw material</td>
            <td class="green" align="center"><asp:Label ID="Label01_Day1" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label01_Day2" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="yellow" align="center"><asp:Label ID="Label01_Day3" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="green" align="center"><asp:Label ID="Label01_Day4" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label01_Day5" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label01_Day6" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>Semi-finished products</td>
            <td class="green" align="center"><asp:Label ID="Label02_Day1" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label02_Day2" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="yellow" align="center"><asp:Label ID="Label02_Day3" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="green" align="center"><asp:Label ID="Label02_Day4" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label02_Day5" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label02_Day6" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>Spare parts</td>
            <td class="green" align="center"><asp:Label ID="Label03_Day1" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label03_Day2" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="yellow" align="center"><asp:Label ID="Label03_Day3" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="green" align="center"><asp:Label ID="Label03_Day4" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label03_Day5" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label03_Day6" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>Chemical products</td>
            <td class="green" align="center"><asp:Label ID="Label04_Day1" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label04_Day2" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="yellow" align="center"><asp:Label ID="Label04_Day3" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="green" align="center"><asp:Label ID="Label04_Day4" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label04_Day5" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label04_Day6" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>Misc.</td>
            <td class="green" align="center"><asp:Label ID="Label05_Day1" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label05_Day2" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="yellow" align="center"><asp:Label ID="Label05_Day3" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="green" align="center"><asp:Label ID="Label05_Day4" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label05_Day5" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label05_Day6" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>TOTAL</td>
            <td class="green" align="center"><asp:Label ID="Label06_Day1" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label06_Day2" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="yellow" align="center"><asp:Label ID="Label06_Day3" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="green" align="center"><asp:Label ID="Label06_Day4" runat="server" Text=""></asp:Label></td>
            <td></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label06_Day5" runat="server" Text=""></asp:Label></td>
            <td class="deepgreen" align="center"><asp:Label ID="Label06_Day6" runat="server" Text=""></asp:Label></td>
        </tr>

        <tr>
            <td></td>
            <td colspan="9"></td>
        </tr>
    </table>
        
    <table class="commontable">
        <tr>
            <td align="center" colspan="8"><span class="fs-display-title" style="font-weight: 700">E - QUALITY / NON-CONFORMITY PRODUCTS</span></td>
        </tr>

        <tr>
            <td></td>
            <td align="center" colspan="2">
                <asp:Label Text="" ID="lbCM" runat="server" /> </td> 
            <td></td>
            <td align="center" colspan="4"> 
                <asp:Label Text="" ID="lbYTD" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="center"></td>
            <td class="green" align="center">N-1</td>
            <td class="deepgreen" align="center">Actual</td>
            <td></td>

            <td class="green" align="center">N-1</td>
            <td class="deepgreen" align="center">Actual</td>
            <td></td> 
            <td class="yellow" align="center">Max</td>
        </tr>
        <asp:Repeater ID="EQRepeater" runat="server">
            <ItemTemplate>
            
        <tr>
            <td>
                <%# Eval("title")%></td>

         
                    <asp:Repeater ID="RPValue" runat="server">
                        <ItemTemplate>
                            <td>
                            <%# GetDataItem()%>
                            </td>
                        </ItemTemplate>
                    </asp:Repeater>
        </tr>

            </ItemTemplate>
        </asp:Repeater>
         

        <tr>
            <td colspan="8"></td>
        </tr>
    </table>

    <br />
    <br />

    <table class="commontable">

        <asp:Repeater ID="RPGAP" runat="server"> 
            <ItemTemplate>
                <tr>
                    <td> 
                        <%# Eval("title") %>
                    </td>
                    <asp:Repeater ID="RPValue" runat="server">
                        <ItemTemplate>
                            <td>
                            <%# GetDataItem()%>
                            </td>
                        </ItemTemplate>
                    </asp:Repeater>
                </tr> 
            </ItemTemplate>
        </asp:Repeater>
             
    </table>

    <script type="text/javascript">
        $(function () {

            $("table.commontable tr td span[id*=Label]").each(function () {
                var self = $(this); self.text(self.text().commafy());
            });
        })
    </script>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Brochure Report - D - INVENTORIES
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
我的应用程序页
</asp:Content>
